﻿namespace Cos.Module.Template.NHibernate.Test
{
    using Cos.Core.NHibernate;

    using FluentNHibernate.Testing;

    using NUnit.Framework;

    [TestFixture]
    public class DataTypeDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapDataTypeDataModel()
        {
            new PersistenceSpecification<DataTypeDataModel>(Session)
                .CheckProperty(x => x.DataTypeName, "TextBlock")
                .CheckProperty(x => x.HasMedia, false)
                .CheckProperty(x => x.IsFormField, false)
                .VerifyTheMappings();
        }
    }
}
